﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace MyWeb.Admin
{
    public partial class Admin : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            //if (Session["Role"] == null) Response.Redirect("~/Admin/Login.aspx");
            //if (Session["Username"] != null)
            //{
            //    if (int.Parse(Session["Role"].ToString()) == 1)
            //        lbthoten.Text = "Xin chào : " + Session["Username"] + " - Administrator";
            //    else lbthoten.Text = "Xin chào : " + Session["Username"] + " - Employees";
            //}
        }

        protected void Linkbutton_Click(object sender, EventArgs e)
        {
            LinkButton lbt = (LinkButton)sender;
            Response.Redirect("~/Admin/" + lbt.ID.Trim() + ".aspx");
        }
        protected void lbtthoat_Click(object sender, EventArgs e)
        {
            Session.Clear();
            Response.Redirect("~/Admin/Login.aspx");
        }
    }
}